<template>
  <a-card :bordered="false" title="">
    <this-table @on-edit="onEdit" ref="table" />
    <this-modal ref="modal" @refresh="refresh" />
  </a-card>
</template>

<script>
import thisTable from './table'
import thisModal from './modal.vue'
export default {
  components: { thisTable, thisModal },
  methods: {
    onEdit(row) {
      this.$refs.modal.open(row)
    },
    refresh() {
      this.$refs.table.$refs.table.onRefresh()
    },
  },
}
</script>

